package com.eastmoney.emis.edda.domain.event;

import com.eastmoney.emis.edda.domain.entity.EddiInstruction;
import com.eastmoney.emis.edda.domain.valueobject.EddiOperation;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.domain.event
 * @author: 汪程程
 * @date: 2022/9/29 4:30 PM
 * @version: 1.0
 */
public class EddiInstructionEvent extends EddiEvent {

    private String applySerialNo;
    private String mandateId;
    private String status;
    private String errorNo;
    private String errorReason;
    private String applyReq;
    private String applyRes;

    private String transactionId;

    public String getApplySerialNo() {
        return applySerialNo;
    }

    public void setApplySerialNo(String applySerialNo) {
        this.applySerialNo = applySerialNo;
    }

    public String getMandateId() {
        return mandateId;
    }

    public void setMandateId(String mandateId) {
        this.mandateId = mandateId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getErrorNo() {
        return errorNo;
    }

    public void setErrorNo(String errorNo) {
        this.errorNo = errorNo;
    }

    public String getErrorReason() {
        return errorReason;
    }

    public void setErrorReason(String errorReason) {
        this.errorReason = errorReason;
    }

    public String getApplyReq() {
        return applyReq;
    }

    public void setApplyReq(String applyReq) {
        this.applyReq = applyReq;
    }

    public String getApplyRes() {
        return applyRes;
    }

    public void setApplyRes(String applyRes) {
        this.applyRes = applyRes;
    }

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public EddiInstructionEvent() {
    }

    public EddiInstructionEvent(EddiInstruction eddiInstruction) {
        this.setClientId(eddiInstruction.getClientId());
        this.setRefEid(eddiInstruction.getEid());
        this.setMandateId(eddiInstruction.getMandateId());
        this.setApplySerialNo(eddiInstruction.getApplySerialNo());
        this.setStatus(eddiInstruction.getStatus());
        this.setTransactionId(eddiInstruction.getTransactionId());
    }

    @Override
    public String toString() {
        return "EddiInstructionEvent{" +
                "applySerialNo='" + applySerialNo + '\'' +
                ", mandateId='" + mandateId + '\'' +
                ", status='" + status + '\'' +
                ", errorNo='" + errorNo + '\'' +
                ", errorReason='" + errorReason + '\'' +
                ", applyReq='" + applyReq + '\'' +
                ", applyRes='" + applyRes + '\'' +
                ", transactionId='" + transactionId + '\'' +
                "} ";
    }
}
